package com.evolve.autotest;

import java.util.LinkedList;
import java.util.List;


public class TestSuite{

	private final List<Test> tests;
	private String name;
	private ReturnValue suiteReturnValue;
	
	
	public TestSuite(String name) {
		tests = new LinkedList<Test>();
		this.name = name;
		suiteReturnValue = ReturnValue.OK;
	}
	
	public void addTest(Test test) {
		tests.add(test);
	}
	
	public List<Test> getTests() {
		return tests;
	}
	
	public String getName() {
		return name;
	}

	public void setReturnValue(ReturnValue suiteReturnValue) {
		this.suiteReturnValue = suiteReturnValue;
	}
	
	public ReturnValue getSuiteReturnValue() {
		return suiteReturnValue;
	}

	/**
	 * Gets the number of test cases
	 * @return
	 */
	public int size() {
		return tests.size();
	}

	public Test get(int index) {
		return tests.get(index);
	}
}
